/*
 * @Author: 鱿鱼溪学院
 * @Date: 2025-02-06 01:24:52
 * @LastEditTime: 2025-07-15 06:41:48
 * @LastEditors: 鱿鱼溪学院
 * @Description:
 * @FilePath: \yyx-web\src\router\index.ts
 * Copyright 鱿鱼溪学院 by edu v1.0
 * 天道酬勤
 */
import Home from '@/views/Home.vue'
import About from '@/views/About.vue'

import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },

  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '@/views/About.vue')
  },
  {
    path: '/course',
    name: 'Course',
    component: () =>
      import(/* webpackChunkName: "course" */ '@/views/Course.vue')
  },
  {
    path: '/course/detail',
    name: 'Detail',
    component: () =>
      import(/* webpackChunkName: "course" */ '@/views/Detail.vue')
  },
  {
    path: '/register',
    name: 'register2',
    component: () =>
      import(/* webpackChunkName: "course" */ '@/views/Register2.vue')
  },
  {
    path: '/login',
    name: 'login2',
    component: () =>
      import(/* webpackChunkName: "course" */ '@/views/Login2.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes //相当于
})

export default router
